package com.gtt.pattern.structural.composite;

/**
 * Leaf
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2011-3-31
 * 
 */
public class Leaf extends Component {

	public Leaf(String name) {
		super(name);
	}

	@Override
	public void add(Component c) {
		System.out.println("Leaf Can't add component");
	}

	@Override
	public void dumpContents() {
		System.out.println("Node: " + this.name);
	}

}
